import http from './interceptor'

/**
 * 获取首页列表
 */
function getBannerList(data?: any){
  return http.GET("/api/banner/getBannerList", data)
}

/**
 * 获取设置用户信息
 */
function setUserInfo(data?: any){
    return http.GET("/api/user/setUserInfo", data)
}

/**
 * 获取openId
 */
function getOpenId(data?: any) {
    return http.POST("/api/user/getOpenId", data)
}

/**
 * 授权登录
 * @param data 
 */
function authLogin(data?: any) {
    return http.POST("/api/user/authLogin", data)
}

/**
 * 完善账号
 */
function perfectUserProfile(data?: any) {
    return http.POST("/api/user/perfectUserProfile", data)
}

/**
 * 获取资产信息
 */
function getAssets(data?: any) {
    return http.GET("/api/user/getAssets", data)
}
 
export {
  getBannerList,
  getOpenId,
  setUserInfo,
  authLogin,
  perfectUserProfile,
  getAssets,
}